package pattern.builder

/**
 * 创建器的第一种实现
 */
class ConcreteBuilderA extends Builder{
  private val product = new Product()

  override def builderComponent1(): Unit = {
    product.component1 = "component1 from ConcreteBuilderA"
  }

  override def builderComponent2(): Unit = {
    product.component2 = "component1 from ConcreteBuilderA"
  }

  override def builderProduct() = product
}
